<template>
    <view class="content">
        <web-view :src="options.url" v-if="isShow"></web-view>
    </view>
</template>

<script>
	export default {
		name: 'pinduoduo',
        data() {
			return {
				isShow: false,
				options: {}
            }
        },
        onLoad(options) {
			this.options = options
        },
        onHide() {
			this.isShow = false;
        },
        onShow() {
			uni.showLoading({
                title: '加载中'
            });
			setTimeout(() => {
				uni.hideLoading();
            }, 2000);
			this.$nextTick(() => {
				this.isShow = true
            })
        }
	};
</script>

<style lang="scss" scoped>

</style>